package com.moyq5.permit.center.core;

import com.moyq5.mvc.framework.exception.MyException;

/**
 * Service层内部异常
 * @author Moyq5
 * @date 2018年4月26日
 */
public class ServiceException extends MyException {

	private static final long serialVersionUID = 1L;

	public ServiceException() {
		super(ServiceErrorCode.C9999.getText());
	}
	
	public ServiceException(ServiceErrorCode code) {
		super(code.name(), code.getText());
	}
	
	public ServiceException(ServiceErrorCode code, String message) {
		super(code.name(), message);
	}
}
